package com20230216;

public class Fibo {
    public static void main(String[] args) {
//        int find = 10;
//        find = fibo(find-1) + fibo(find-2);
//        System.out.println(find);
        int a = fibo(10);
        System.out.println(a);

    }
    public static int fibo(int n){
        if (n == 1 || n == 2){
            return 1;
        }
        return fibo(n-2) + fibo(n-1);
    }
}
